package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.dto.Simple;
import com.itheima.pojo.SubjectsDirectorys;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SubjectsDirectorysMapper extends BaseMapper<SubjectsDirectorys> {
    @Select("SELECT id value,directoryName label from hm_subjects_directorys where subjectID =#{subjectID}")
    List<Simple> selectIdAndNameByid(Integer subjectID);
}
